package com.hzw.entity;


import com.hzw.common.MapperGenerator;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


@Data
@Entity
@Table(name = "commodity")
public class Commodity {
    private static final long serialVersionUID = 1L;

    @Column(name = "id")
    @Id
    private String id;

    @Column(name = "classification_id")
    private String classificationId;

    @Column(name = "classification")
    private String classification;

    @Column(name = "img")
    private String img;

    @Column(name = "price")
    private Double price;

    @Column(name = "vip_price")
    private Double vipPrice;

    @Column(name = "stock")
    private String stock;

    @Column(name = "is_recommend")
    private Integer isRecommend;

    @Column(name = "is_show")
    private Integer isShow;

    @Column(name = "create_time")
    private String createTime;

    @Column(name = "commodity_name")
    private String commodityName;

    private Integer pageNum;

    private Integer pageSize;

    private String fileName;

    private String filePath;

    private String picture;



    public Commodity() {
    }

    public static void main(String[] args) {
        System.out.println(MapperGenerator.genMapper(Commodity.class));
    }

}
